package com.qingke.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qingke.mapper.InterviewAbilityMapper;
import com.qingke.pojo.InterviewAbility;
import com.qingke.service.InterviewAbilityService;
@Service("interviewAbilityService")
public class InterviewAbilityServiceImpl implements InterviewAbilityService {
	@Resource
	private InterviewAbilityMapper iaDao;

	public int saveInterviewAbility(InterviewAbility record) {
		return iaDao.insertSelective(record);
	}

	public int softDelete(int id) {
		return iaDao.softDelete(id);
	}

	public InterviewAbility getInterviewAbilityById(int id) {
		return iaDao.selectByPrimaryKey(id);
	}

	public List<InterviewAbility> listInterviewAbilityByStudentId(int id) {
		return iaDao.listInterviewAbilityByStudentId(id);
	}

	public int updateInterviewAbility(InterviewAbility record) {
		return iaDao.updateByPrimaryKeySelective(record);
	}

}
